/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cnam.mobileshopping.ejb.product;

import java.util.Date;
import java.util.List;
import javax.ejb.Local;
import org.cnam.mobileShopping.entity.Category;
import org.cnam.mobileShopping.entity.Product;

/**
 *
 * @author Administrateur
 */
@Local
public interface ProductLocal {
    
    Product getProduct(Integer id);
    
    List<Product> getProductsByCategory(Integer categoryId);
    
    List<Category> getCategories();
    
    Product addProduct(String description, Integer categoryId, String barcode);
    
    List<Product> getProductsForSynchro(Date lastupdate);
}
